/*
 * @Author: yojigoji gojie414@gmail.com
 * @Date: 2022-10-21 11:41:11
 * @LastEditors: yojigoji
 * @LastEditTime: 2022-11-10 17:57:08
 * @Description:
 */
const config = process.env.CONFIG as any;

const devBaseURL = {
  // rescenterUrl: "http://cmpuat.changan.com/rescenter",
  // rescenterUrl: "http://cmp.changan.com/rescenter",
  rescenterUrl:"https://mas.changan.com.cn/resapi",
  // processUrl: "http://mastest.changan.com.cn/WFMService",
  // appcubeUrl: "https://appcube.cn-north-4.huaweicloud.com",
  // // local环境
  // // payUrl: "http://10.62.130.12:4443",
  // // 线上dev环境
  // payUrl: "https://cazhdjdf.changan.com.cn:4443",
  // eduUrl: "https://edutest.changan.com.cn:5443",
  // yearUrl: "https://ichangan.changan.com.cn/mas/v5/app/restful/otr_rest/",
  yearUrl: "/year",
  // caHomeUrl: "https://homeuat.changan.com.cn:8002",
  caHomeUrl: "https://home.changan.com.cn",
};

const proBaseURL = {
  // rescenterUrl: "http://cmp.changan.com/rescenter",
  rescenterUrl:"https://mas.changan.com.cn/resapi",
  // processUrl: "http://mas.changan.com.cn/WFMService",
  // appcubeUrl: "https://code.changan.com.cn",
  // // payUrl: "https://183.66.200.227:443",
  // payUrl: "https://cazhdjdf.changan.com.cn",
  // eduUrl: "https://edu.changan.com.cn",
  yearUrl: "https://ichangan.changan.com.cn/mas/v5/app/restful/otr_rest",
  caHomeUrl: "https://home.changan.com.cn",
};

// local环境和development环境都走devURL配置
let commonBaseURL = proBaseURL;
if (config.env === "development" || config.env === "local") {
  commonBaseURL = devBaseURL;
}

export default commonBaseURL;
